emit QScreen::geometryChanged when the logical DPI changes
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Wed, 28 Oct 2020 18:53:04 +0000 (18:53 +0000)
committerDmitry Shachnev <mitya57@debian.org>
Wed, 28 Oct 2020 18:53:04 +0000 (18:53 +0000)
commita251491821470ff4f356a4a70c190b6ce4212b1d
treefeb19310b9cf3d1c951e829887437220e0f7ac6a
parentaa64d0a0f17ef6232a29fb38be8722b8727dbc1c
emit QScreen::geometryChanged when the logical DPI changes

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=5c7307775d32ae0a
Last-Update: 2020-09-30

Add the missing call to QScreenPrivate::emitGeometryChangeSignals()
along with an emission of physicalDotsPerInchChanged()
since that is calculated from geometry and physical size.

Rearrange the code in
QGuiApplicationPrivate::processScreenGeometryChange()
to prevent duplicate emissions of geometryChanged(),
physicalDotsPerInchChanged() which this change would introduce.

Gbp-Pq: Name emit_geometry_changed.diff
src/gui/kernel/qguiapplication.cpp
src/gui/kernel/qscreen.cpp